﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;

namespace Ks.Fs.Entity
{
    [DataContract]
    public class Folder
    {
        int id;

        [DataMember]
        public int Id
        {
            get { return id; }
            set { id = value; }
        }
        string folderName;

        [DataMember]
        public string FolderName
        {
            get { return folderName; }
            set { folderName = value; }
        }
        int countOfSubFolders;
        [DataMember]
        public int CountOfSubFolders
        {
            get { return countOfSubFolders; }
            set { countOfSubFolders = value; }
        }
        int countOfFiles;
        [DataMember]
        public int CountOfFiles
        {
            get { return countOfFiles; }
            set { countOfFiles = value; }
        }
        string path = string.Empty;

        /// <summary>
        /// Relative path from root of file server
        /// </summary>
        [DataMember]
        public string Path
        {
            get { return path; }
            set { path = value; }
        }

        string owner = string.Empty;
        [DataMember]
        public string Owner
        {
            get { return owner; }
            set { owner = value; }
        }

        bool isPublic = true;
        [DataMember]
        public bool IsPublic
        {
            get { return isPublic; }
            set { isPublic = value; }
        }

        int parentId = -1;
         [DataMember]
        public int ParentId
        {
            get { return parentId; }
            set { parentId = value; }
        }
    }
}